require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 2,["7"] = 2,["8"] = 5,["9"] = 5,["10"] = 5,["12"] = 12,["13"] = 13,["14"] = 14,["15"] = 11,["16"] = 18,["17"] = 19,["18"] = 21,["19"] = 22,["20"] = 22,["21"] = 22,["22"] = 22,["23"] = 22,["25"] = 19,["26"] = 18,["27"] = 8,["28"] = 5});
local ____exports = {}
local ____trigger = require("solar.w3ts.handles.trigger")
local Trigger = ____trigger.Trigger
local ____ForceUtil = require("solar.util.ForceUtil")
local ForceUtil = ____ForceUtil.default
____exports.default = __TS__Class()
local LimitUnitCountByUnitTypeOnGameStartState = ____exports.default
LimitUnitCountByUnitTypeOnGameStartState.name = "LimitUnitCountByUnitTypeOnGameStartState"
function LimitUnitCountByUnitTypeOnGameStartState.prototype.____constructor(self)
    local trigger = __TS__New(Trigger)
    trigger:registerTimerEvent(2, false)
    trigger:addAction(self.action)
end
function LimitUnitCountByUnitTypeOnGameStartState.prototype.action()
    ForceUtil.forUserForce(function(____, player)
        for configKey in pairs(____exports.default.config) do
            SetPlayerTechMaxAllowedSwap(
                FourCC(configKey),
                ____exports.default.config[configKey],
                player
            )
        end
    end)
end
LimitUnitCountByUnitTypeOnGameStartState.config = {}
____exports.default = LimitUnitCountByUnitTypeOnGameStartState
return ____exports
